from Card import Card


class CardBox:
    def __init__(self, cardsData):
        self.cards = []
        for cardData in cardsData:
            self.cards.append(Card(cardData))

    def isEmpty(self):
        return self.cardsCount() <= 0

    def cardsCount(self):
        return len(self.cards)
